﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.Media;
using Android.Graphics;
using Android.Locations;
using AndroidText = Android.Text;
using Android.Content.Res;
using Android.Support.V4.App;

namespace MWC.NetcampCheckin
{
    [Service(Label="Notification Service")]
    class NotificationService : Service
    {
        public override void OnCreate()
        {
            base.OnCreate();
        }
        public override StartCommandResult OnStartCommand(Intent intent, StartCommandFlags flags, int startId)
        {
            Intent updateManager = new Intent(this, typeof(NotificationUpdateManager));
            //PendingIntent pendingIntent = PendingIntent.GetBroadcast(this, 0, updateManager, PendingIntentFlags.OneShot);
            this.SendBroadcast(updateManager);
            return StartCommandResult.NotSticky;
        }
        public override IBinder OnBind(Intent intent)
        {
            throw new NotImplementedException();
        }
    }
}